﻿/// <reference path="RequestHandler.js" />
/// <reference path="../HttpRequest.js" />
/// <reference path="../../enhancements/markup-strip/MarkupStripper.js" />
/// <reference path="../../enhancements/markup-strip/selectors/BlogMarkupElementSelector.js" />
///--------------------------------------------------------------------
/// <file name="ViewAllBlogsHandler.js">
///   Adds functionality to the pages where users view blog entries
///   from all Neoseeker users.
/// </file>
///--------------------------------------------------------------------

NAMFox.ns(function() { with (NAMFox) {

this.ViewAllBlogsHandler = function() {
};

ViewAllBlogsHandler.prototype = new RequestHandler();
ViewAllBlogsHandler.prototype.name = "ViewAllBlogsHandler";

ViewAllBlogsHandler.prototype.handleRequestCore = function(request, _$) {
    /// <summary>Handles a request.</summary>
    /// <param name="request" type="HttpRequest">
    ///   The HTTP request which encapsulates the
    ///   document and route data for this request.
    /// </param>

    var markupStripper = new MarkupStripper(
        new BlogMarkupElementSelector(request.htmlDocument)
    );
    
    markupStripper.attach();
};

}});